// src/api/ai.ts
import { aiInstance } from '@/utils/axiosConfig'

interface ChatResponse {
  choices: {
    message: {
      content: string
    }
  }[]
}


const http = { 
  post: <T>(url: string,data?: any): Promise<ResponseEntity<T>> => {
    return aiInstance({
      method: 'post',
      url,
      data, 
    })
  }
}
export default http;
